package com.noble.meether.chat.ui.agora.act.bean;

import com.noble.library.base.bean.BaseData;

import org.json.JSONObject;

/**
 * 接受请求
 * Created by Su on 2017/4/21.
 */
public class Accept extends BaseData {
    private long vcId;              // 通道ID
    private String channelKey;       // 渠道加密Key
    private String channelName;         // 通道Name

    @Override
    public void parseJson(String jsonStr) {
        JSONObject jsonObject = getJsonObject(jsonStr);
        this.setChannelKey(jsonObject.optString("CKey"));
        this.setChannelName(jsonObject.optString("CName"));
        this.setVcId(jsonObject.optLong("IdRecChat"));
    }

    public long getVcId() {
        return vcId;
    }

    public void setVcId(long vcId) {
        this.vcId = vcId;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getChannelKey() {
        return channelKey;
    }

    public void setChannelKey(String channelKey) {
        this.channelKey = channelKey;
    }
}